package com.project;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
* @Description:   项目启动类
* @Author:         wangzhiqiang
* @CreateDate:     2019-02-20 11:09
* @Version:        1.0
*/
@EnableCaching //开启缓存
@ComponentScan(basePackages = {"com.gitee.sunchenbin.mybatis.actable.manager.*","com.framework", "com.project"})
//@EnableScheduling //开启定时任务
@SpringBootApplication
public class ServerApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ServerApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(ServerApplication.class, args);
    }

}
